#if !defined(AFX_MSGVIEW_H__F7C75EAC_2995_4A16_9B73_70CB5A45C3F6__INCLUDED_)
#define AFX_MSGVIEW_H__F7C75EAC_2995_4A16_9B73_70CB5A45C3F6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MsgView.h : header file
//

#include <afxrich.h>

/////////////////////////////////////////////////////////////////////////////
// CMsgView view
class CMsgView : public CRichEditView
{
protected:
	CMsgView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CMsgView)

// Attributes
public:
	CHARFORMAT cf;
	bool showLogTime;

// Operations
public:
	void error(CString str);
	void info(CString str);
	void setLogTimeFlag(bool flag=TRUE);
	void log(CString str,COLORREF TextColor = RGB(0,0,0));

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMsgView)
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CMsgView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	//{{AFX_MSG(CMsgView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnLogClear();
	afx_msg void OnLogCopy();
	afx_msg void OnLogRun();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MSGVIEW_H__F7C75EAC_2995_4A16_9B73_70CB5A45C3F6__INCLUDED_)
